package com.fhz.mvvmtest.food.viewmodel;

import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;

import com.fhz.mvvmtest.food.entity.Food;
import com.fhz.mvvmtest.food.repository.FoodRepository;

/**
 * 时间:11/15/21
 *
 * @author msfeng
 * 简述: TODO
 */
public class FoodViewModel extends ViewModel {

    private MutableLiveData<Food> mutableLiveData = new MutableLiveData<>();

    private FoodRepository foodRepository;

    public FoodViewModel(FoodRepository foodRepository) {
        this.foodRepository = foodRepository;
    }

    public Food getFood(){
        return foodRepository.getFood();
    }
}
